<!DOCTYPE html>
<html lang="en"xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<div th:switch="${sex}">
    <span th:case="男">天</span><br/>
    <span th:case="女">地</span><br/>
    <span th:case="*">人</span><br/>
</div>
</body>
</html>